﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Game
{
    public class Soldier
    {
        public string name { get; set; }
        public int HP { get; set; }
        public int hpBar { get; set; }
        public int speed { get; set; }
        public int score { get; set; }
        public int resource { get; set; }
        public int damage { get; set; }
        public double currentX { get; set; }
        public double currentY { get; set; }

        public Soldier(string name, int hp, int hpBar, int speed, int score, int res, int damage)
        {
            this.name = name;
            this.HP = hp;
            this.hpBar = hpBar;
            this.speed = speed;
            this.score = score;
            this.resource = res;
            this.damage = damage;
        }
        public Soldier(string name, int hp, int hpBar, int speed, int score)
        {
            this.name = name;
            this.HP = hp;
            this.hpBar = hpBar;
            this.speed = speed;
            this.score = score;
            this.resource = 1;
            this.damage = 1;
        }
        public void move(double x, double y)
        {
            while (currentX < x)
                currentX++;
            while (currentX > x)
                currentX--;
            while (currentY < y)
                currentY++;
            while (currentY > y)
                currentY--;
        }
        public void searchPath(Map map)
        {

        }
    }
}
